import axios from "../http";
import Qs from "qs";
import base from "@/request/base";

/**
 * post方法，对应post请求
 * @desc注册请求
 * @param {String} url [请求的url地址]
 * @param {Object} params [请求时携带的参数]
 */
//获取首页数据接口
export function getAlarmData(data) {
    return axios({
        url: `${base.url}/indexLoadAlarmNum`,
        method: 'post',
        data: Qs.stringify(data)
    })
}
//获取详细数据接口
export function getMonitorDetData(data) {
    return axios({
        url: `${base.url}/monitorDetialData`,
        method: 'post',
        data: Qs.stringify(data)
    })
}